import 'package:flutter/material.dart';

import '../utils/constants.dart';

/// 
/// @Description 
/// @Author WuJianFeng
/// @Date 2024/3/1 15:44
/// 

class LoginProvider extends ChangeNotifier{

  LoginProvider._internal();

  static final LoginProvider _singleton = LoginProvider._internal();

  factory LoginProvider() => _singleton;

  String _loginTitle = "";
  String get loginTitle => _loginTitle;

  int _loginType = loginTypeInit;
  int get loginType => _loginType;


  void setLoginTitle(String loginTitle){
    _loginTitle = loginTitle;
    notifyListeners();
  }

  void setLoginType(int loginType){
    _loginType = loginType;
    notifyListeners();
  }

}
 
 